﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="TimKiem.aspx.cs" Inherits="TimKiem" Title="Untitled Page" %>

<%@ Register Assembly="CollectionPager" Namespace="SiteUtils" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <link href="Thumnail.css" rel="stylesheet" type="text/css" />
    <div id="top" style="width: 500px;">
    </div>
    <div>
        <asp:Label ID="Label1" runat="server" ForeColor="Red"></asp:Label>
    </div>
    <div class="border" align="center" id="body" style="width: 750px;">
        <div style="width: 750px; height: 950px">
            <asp:DataList ID="DataList1" runat="server" RepeatColumns="4" RepeatDirection="Horizontal"
                Width="100%">
                <ItemTemplate>
                    <table class="size" style="height: 300px; text-align: center;">
                        <tr>
                            <td style="text-align: center; padding-top: 1px; padding-bottom: 1px;">
                                <asp:ImageButton ID="ImageButton1" CssClass="sizepic" runat="server" ImageAlign="AbsMiddle"
                                    OnClick="ImageButton_Click" CommandArgument='<%# Eval("MaXe") %>' ImageUrl='<%# Eval("Image","Pictures/SmallImage/{0}.jpg") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="lbl_TenXe" runat="server" Font-Bold="true" ForeColor="Red" Text='<%# Eval("TenXe") %>'></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Mã xe:
                                <asp:Label ID="lbl_MaXe" runat="server" Font-Bold="true" Text='<%# Eval("MaXe") %>'></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Màu xe:
                                <asp:Label ID="lbl_Mau" runat="server" Font-Bold="true" Text='<%# Eval("NgoaiThat") %>'></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Năm sản xuất:
                                <asp:Label ID="lbl_NamSX" runat="server" Font-Bold="true" Text='<%# Eval("NamSX") %>'></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Giá bán:
                                <asp:Label ID="lbl_Gia" runat="server" Font-Bold="true" ForeColor="Red" Text="Liên Hệ"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td align="center">
                                <asp:ImageButton ID="btnCartAdd" runat="server" ImageUrl="Pictures/buynow.gif" OnClick="btnCartAdd_Click"
                                    Width="99" Height="32" CommandArgument='<%# Eval("MaXe") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td style="border-bottom-color: #cccccc; border-bottom-style: solid; border-bottom-width: 1px;">
                            </td>
                        </tr>
                    </table>
                </ItemTemplate>
            </asp:DataList>
        </div>
        <cc1:CollectionPager ID="CollectionPager1" runat="server" BackText="« Back" LabelText="Trang:"
            NextText="Next »" ResultsFormat="Kết quả hiển thị {0}-{1} (của {2})">
        </cc1:CollectionPager>
        <a href="~/Bin/CollectionPager.dll"></a>
        <br />
    </div>
</asp:Content>
